package com.mengniu.commerce.sync.api.base;

import lombok.Data;

import java.util.List;

@Data
public class OrderResult {

    private Integer code;

    private ResultData data;

    private String msg;

    private Boolean success;




    @Data
    public static class ResultData{
        private List<DataModel> errorData;
        private List<DataModel> successData;
    }

    @Data
    public static class DataModel{
        private String errCode;
        private String errMsg;
        private String fromSys;
        private String salesOrderNo;
        private String sourceOrderNo;
        private List<OrderItem>orderItems;
    }

    @Data
    public static class OrderItem{
        private String errCode;
        private String errMsg;
        private String lineNum;
        private String sourceOrderItemNo;
        private List<OrderItemActivity> orderItemActivities;
        private List<OrderItemLogistic> orderItemLogistics;
    }


    @Data
    public static class OrderItemActivity{
        private String activityId;
        private String errCode;
        private String errMsg;
    }

    @Data
    public static class OrderItemLogistic{
        private String courierNo;
        private String errCode;
        private String errMsg;
    }


}
